package net.thermetics.fx.editors;

import java.beans.PropertyEditorSupport;

import net.thermetics.fx.model.ReportVote;

public class ReportVoteEditor extends PropertyEditorSupport {
	public void setAsText(String text) {
		String[] split = text.split(",");
		ReportVote vote = new ReportVote();
		vote.setAction(split[0]);
		vote.setViolation(split[1]);
		setValue(vote);
	}
}
